{extend name="mainadmin@layouts/base" /}
{block name="main" }

<header class="header  b-b clearfix">
    <form id="forms" class="talbe-search form-inline "  method="post" action="{:url('getList')}" >
        <div class="page-breadcrumbs">
            <ul class="breadcrumb" >
                <li>
                    <i class="fa fa-ellipsis-v"></i>
                    <strong>升级申请</strong>
                </li>
            </ul>
            <select name="time_type"  style="width: 100px;" data-toggle="select2" data-notsearch="true" data-change="submit">
                <option value="post_time" {$search['time_type']=='add_time'?'selected':''}>申请时间</option>
                <option value="check_time" {$search['time_type']=='check_time'?'selected':''}>审核时间</option>
            </select>
            <a class="btn btn-default time_sel" data-toggle="reportrange" data-change="submit">
                <i class="fa fa-calendar fa-lg"></i>
                <span></span> <b class="caret"></b>
                <input type="hidden" value="{$start_date} - {$end_date}" id="reportrange" name="reportrange" />
            </a>
            <select name="type"  style="width: 130px;" data-toggle="select2"  data-notsearch="true"  data-chang="submit">
                <option value="0">升级方式</option>
                {volist name="type_list" id="val"}
                <option value="{$key}">{$val}</option>
                {/volist}
            </select>
            <select name="status"  style="width: 130px;" data-toggle="select2"  data-notsearch="true"  data-chang="submit">
                <option value="-1">所有状态</option>
                {volist name="status" id="val"}
                <option value="{$key}">{$val}</option>
                {/volist}
            </select>
            <select name="proxy_id"  style="width: 130px;" data-toggle="select2" data-notsearch="true" data-chang="submit">
                <option value="0">原层级</option>
                {volist name="proxyLevel" id="vo"}
                <option value="{$vo.proxy_id}">{$vo.proxy_name}</option>
                {/volist}
            </select>
            <select name="up_proxy_id"  style="width: 130px;" data-toggle="select2" data-notsearch="true" data-chang="submit">
                <option value="0">升级层级</option>
                {volist name="proxyLevel" id="vo"}
                <option value="{$vo.proxy_id}">{$vo.proxy_name}</option>
                {/volist}
            </select>
            <input type="text" class="form-control input-medium" value="{$search.keyword}" name="keyword" placeholder="会员ID/手机号" data-rule-required="true" />
            <button class="btn btn-sm btn-default-iq" type="submit" title="搜索"><i class="fa fa-search"></i></button>
        </div>
    </form>
</header>
<section class="scrollable wrapper w-f ">
    <section class="panel panel-default ">
        <div class="table-responsive " id="list_box">
            {include file="sys_admin/up_check/list" /}
        </div>
    </section>
</section>
<script type="text/javascript">
    $(document).on('click','.operatbtn',function(){
        $('#operating').val($(this).data('type'));
        $('.postBtn').click();
    })
</script>
{/block}
